<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <h2>vuex:集中式状态管理工具,可以实现任意组件之间的通信</h2>
    <h4>核心概念</h4>
    <ol>
        <li>state : <span>数据存储</span></li>
        <li>mutations :<span>修改数据</span></li>
        <li>actions :<span>处理业务、异步</span></li>
        <li>getters :<span>计算属性</span></li>
        <li>modules :<span>模块式开发</span></li>
    </ol>

    <h2>pinia:集中式状态管理工具,可以实现任意组件之间的通信</h2>
    <h4>核心概念</h4>
    <ol>
        <li>state : <span>数据存储</span></li>
        <li>actions :<span>处理业务、异步</span></li>
        <li>getters :<span>计算属性</span></li>
    </ol>
    <p>使用说明</p>
    <img src="./images/pinia_1.jpg" alt="">
    <img src="./images/pinia_2.jpg" alt=""><img src="./images/pinia_3.jpg" alt="">
</body>

</html>
<style>
    img {
        width: 100vw;
    }

    span {
        margin-left: 20px;
    }
</style>